home *** CD-ROM | disk | FTP | other *** search
- function createService(service, name, accountName, serviceId)
- {
- if (name == 'Counter')
- {
- service.SetPlaceholderImage(".\\InitService\\Counter.gif");
- service.SetHTML("<!-- Counter code version 1.0. Do NOT alter this code!\n" +
- " http://counter.mycomputer.com -->\n" +
- "<SCRIPT language=JavaScript\n" +
- " src=\"http://counter.mycomputer.com/get_counter.html?u=" +
- accountName + "&c=" +
- serviceId + "\">\n" +
- "<" + "/SCRIPT>\n" +
- "<NOSCRIPT>\n" +
- " <a href=\"http://counter.mycomputer.com/\"><img alt=\"Counter\"\n" +
- "src=\"http://counter.mycomputer.com/c.count?u=" +
- accountName + "&c=" +
- serviceId + "\" border=0></a>\n" +
- "</NOSCRIPT>\n" +
- "<!-- End of Counter Code -->");
- }
- else if (name == 'Superstats')
- {
- service.SetPlaceholderImage(".\\InitService\\superstats.gif");
- service.SetHTML('<!-- Start Superstats code version 3.0b. http://v2.superstats.com -->\n' +
- '<script language="JavaScript">\n' +
- 'var pageName = "%pagename%";\n' +
- 'var server = "Server";\n' +
- 'var channel = "Channel";\n' +
- '/**** DO NOT ALTER ANYTHING BELOW THIS LINE! ****/\n' +
- 'var code = \' \'; </script>\n' +
- '<script src="http://code.superstats.com/code/ss/' + accountName + '/0/30b">\n' +
- '</script><script language="JavaScript">\n' +
- 'br = navigator.appName + parseInt(navigator.appVersion);\n' +
- 'if (code != \' \' || br == \'Netscape2\') document.write(code);\n' +
- 'else document.write(\'<a\'\n' +
- '+ \' href="http://stats.superstats.com/c/ss/' + accountName + '" target="_top"><img\'\n' +
- '+ \' src="http://stats.superstats.com/b/ss/' + accountName + '/0\'\n' +
- '+ \'?pageName=\' + escape(pageName) + \'&server=\' + escape(server)\n' +
- '+ \'&channel=\' + escape(channel) + \'" border=0></a>\');\n' +
- 'document.write(\'<\'); document.write(\'!-- \');\n' +
- '</script><noscript><a\n' +
- 'href="http://stats.superstats.com/c/ss/' + accountName + '"\n' +
- 'target="_top"><img src="http://stats.superstats.com/b/ss/' + accountName + '/1"\n' +
- 'border=0></a></noscript>\n' +
- '<script language="JavaScript">\n' +
- 'document.write(\' --\'); document.write(\'>\');\n' +
- '</script> <!-- End Superstats banner code. -->');
- }
- else if (name == 'SiteMiner')
- {
- service.SetPlaceholderImage(".\\InitService\\siteminer.gif");
- service.SetHTML('<!-- MyComputer.com SiteMiner code version 2.0.\n' +
- 'Do NOT alter this code! http://siteminer.mycomputer.com -->\n' +
- '<NOSCRIPT>\n' +
- '<a href="http://siteminer.mycomputer.com/searchpage.html?u=' + accountName + '&s=' + serviceId + '">\n' +
- ' Click here to search my site</a>\n' +
- '</NOSCRIPT>\n' +
- '<script Language="JavaScript" \n' +
- ' src="http://siteminer.mycomputer.com/get_searchbox.html?u=' + accountName + '&s=' + serviceId + '">\n' +
- '</script>\n' +
- '<!-- End of MyComputer.com SiteMiner code. -->');
- }
- else if (name == 'EZPolls' || name == 'EzPolls')
- {
- service.SetPlaceholderImage(".\\InitService\\ezpolls.gif");
- service.SetHTML('<!-- Start of EZPoll Code v1.5- brought to you by MyComputer.com\n' +
- 'www.mycomputer.com -- Do NOT alter this code! -->\n' +
- '<script language="Javascript">\n' +
- 'var zcode = " "\n' +
- '</script>\n' +
- '<script src="http://ezpolls.mycomputer.com/ezpoll.html?u=' + accountName + '&p=' + serviceId + '">\n' +
- '</script>\n' +
- '<script language="Javascript">\n' +
- 'document.write(zcode)\n' +
- '</script>\n' +
- '<!-- End of EZPoll Code -->');
- }
- else if (name == 'Guestbook')
- {
- service.SetPlaceholderImage(".\\InitService\\guestbook.gif");
- service.SetHTML('<!-- Start of GuestBook code version 1.0 - brought to you by MyComputer.com\n' +
- 'www.mycomputer.com -- Do NOT alter this code! -->\n' +
- '<NOSCRIPT><A HREF="http://guestbook.mycomputer.com/guest.html?u=' + accountName + '&b=' + serviceId + '">Sign my Guestbook.</A></NOSCRIPT>\n' +
- '<NOSCRIPT><A HREF="http://guestbook.mycomputer.com/guest.html?u=' + accountName + '&b=' + serviceId + '&show=1">View my Guestbook.</A></NOSCRIPT>\n' +
- '<SCRIPT Language=JavaScript src="http://guestbook.mycomputer.com/get_guestbook.html?u=' + accountName + '&b=' + serviceId + '">\n' +
- '</SCRIPT>\n' +
- '<!-- End of MyComputer.com\'s GuestBook code. -->');
- }
- else if (name == 'BoardServer')
- {
- service.SetPlaceholderImage(".\\InitService\\boardserver.gif");
- service.SetHTML('<!-- Start BoardServer.com code version 1.0a. \n' +
- 'Do not alter this code! http://boardserver.mycomputer.com -->\n' +
- '<script language="JavaScript"> \n' +
- ' var boardserver = " ";</script>\n' +
- '<script src=\'http://boardserver.mycomputer.com/getcode.html?u=' + accountName + '&f=' + serviceId + '\'></script>\n' +
- '<script language="JavaScript"> \n' +
- ' document.write(boardserver);\n' +
- '</script><!-- End Boardserver.com code. -->');
- }
-
- service.Initialized = true;
- service.SetVar("accountName", accountName);
- service.SetVar("serviceId", serviceId);
- service.Name = name;
- service.Location = '.\\InitService\\ConfigService.html';
- service.Method = 'run()';
- }
-
- function configService()
- {
- choice = window.showModalDialog("ServiceConfig.html", 0,
- "status:no;help:no;border:thin;dialogWidth:290px;dialogHeight:240px;center:yes;scroll:no;");
-
- if (!choice)
- return;
-
- app = new ActiveXObject('FSI.FSIApplication');
- service = app.GetCurrentComponent();
- accountName = service.GetVar('accountName');
- serviceId = service.GetVar('serviceId');
-
- app.SetSystemVar('myc_current_account', accountName);
-
- w = window.screen.availWidth;
- h = window.screen.availHeight;
- if (w > 700)
- w = 700;
-
- pw = '';
-
- if (service.Name == 'Superstats')
- pw = 'mycst_'
- else
- pw = 'myc_'
-
- pw += accountName;
-
- if (!app.HasPassword(pw))
- {
- app.SetInstVar('accountName', accountName);
- choice = window.showModalDialog("Password.html", 0,
- "status:no;help:no;border:thin;dialogWidth:260px;dialogHeight:160px;center:yes;scroll:no;");
- if (!choice)
- return;
- }
-
- name = service.Name;
-
- if (name == 'Counter')
- app.OpenDialog('http://counter.mycomputer.com/configure.html?username=' + accountName +
- '&password=%pw_myc_' + accountName + '%&c=' + serviceId, '', w, h);
- else if (name == 'Superstats')
- app.OpenDialog('http://v2.superstats.com/v3/reports/ss_manager.html?username=' + accountName +
- '&password=%pw_mycst_' + accountName + '%', '', w, h);
- else if (name == 'SiteMiner')
- app.OpenDialog('http://siteminer.mycomputer.com/configure2.html?username=' + accountName +
- '&password=%pw_myc_' + accountName + '%&site=' + serviceId, '', w, h);
- else if (name == 'EZPolls' || name == 'EzPolls')
- app.OpenDialog('http://ezpolls.mycomputer.com/editpoll.html?username=' + accountName +
- '&password=%pw_myc_' + accountName + '%&pollid=' + serviceId, '', w, h);
- else if (name == 'Guestbook')
- app.OpenDialog('http://guestbook.mycomputer.com/config.html?username=' + accountName +
- '&password=%pw_myc_' + accountName + '%&bookid=' + serviceId, '', w, h);
- else if (name == 'BoardServer')
- app.OpenDialog('http://boardserver.mycomputer.com/configure2.html?username=' + accountName +
- '&password=%pw_myc_' + accountName + '%&fid=' + serviceId, '', w, h);
- }